home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / rain_for.swf / scripts / __Packages / Time.as < prev   
Encoding:
Text File  |  2010-04-12  |  797 b   |  36 lines

  1. class Time extends Germ
  2. {
  3.    var timeSounds;
  4.    var nSegment;
  5.    var oData;
  6.    var mcBuild;
  7.    var handler;
  8.    function Time()
  9.    {
  10.       super();
  11.       this.timeSounds = ["extra_time"];
  12.    }
  13.    function update(nElapsed)
  14.    {
  15.    }
  16.    function react(oPlayer)
  17.    {
  18.       _global.oSound.playSnd("bonus_time",60);
  19.       _global.oSound.playSnd(smashing.Misc.rndElement(this.timeSounds));
  20.       _global.mcRoot.oMain.cTime -= 5;
  21.       switch(this.nSegment)
  22.       {
  23.          case 0:
  24.             this.oData.sPowerupBot = null;
  25.             break;
  26.          case 1:
  27.             this.oData.sPowerupMid = null;
  28.             break;
  29.          case 2:
  30.             this.oData.sPowerupTop = null;
  31.       }
  32.       delete this.mcBuild.mcGerm;
  33.       this.handler.removeClip(this);
  34.    }
  35. }
  36.